<?php
if (isset($_COOKIE["ImOnline"])){
	//print($_COOKIE["ImOnline"]);
	//print("Welcome back " . $_COOKIE["Username"]);
} else {
	header( 'Location: index.php?error=You have no access to this page' );
	die("<center><br><br><br><img src=\"img/logo.jpg\" \><br>Your webbrowser dont support redirecting.<br>You have no access to this page. <br><a href=\"index.php\">Please go to main page</a></center>");
	//print($_COOKIE["imonline"]);
	};
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" type="text/css" href="css/default.css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Home - Garrysmod Web</title>
</head>

<body>
<div id="page-wrap">
<?php
include("includes/header.html");
?>
<p>Welcome, <?php print($_COOKIE["Username"]);?>!<br />
Your status on the server(s): <?php print($_COOKIE["Status"]); ?><br /><br />Status on servers:<br />
Server 1: N/A<br />
Server 2: N/A</p>
  </div>
<?php
include("includes/footer.html");
?>
</body>
</html>